/* Home.module.css */
.homeContainer {
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.homeContainer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 学校头部 */
.schoolHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}

.schoolName {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fullscreenIcon {
  font-size: 22px;
  color: #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

.fullscreenIcon:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.1);
}

/* 主要内容区域 - 添加滚动 */
.mainContent {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

/* 自定义滚动条样式 */
.mainContent::-webkit-scrollbar {
  width: 6px;
}

.mainContent::-webkit-scrollbar-track {
  background: transparent;
}

.mainContent::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.mainContent::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 轮播图 */
.bannerContainer {
  padding: 20px 20px 16px 20px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.banner {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0;
  display: flex;
  height: 180px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.bannerContent {
  flex: 1;
  z-index: 2;
}

.bannerTitle {
  font-size: 18px;
  font-weight: bold;
  color: #ff6b35;
  margin: 0 0 4px 0;
}

.bannerSubtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
}

.bannerButton {
  background-color: #ff6b35;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}

.bannerImages {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bannerImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
  transition: all 0.3s ease;
}

.banner:hover .bannerImage {
  transform: scale(1.02);
  filter: brightness(1.15) contrast(1.1) saturate(1.15);
}

.paginationIndicator {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #667eea;
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.currentPage {
  font-weight: bold;
}

/* 美化后的功能卡片 */
.cardGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 0 20px 20px 20px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.cardGrid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  pointer-events: none;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--card-bg-color, rgba(255, 255, 255, 0.3)) 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: all 0.4s ease;
  border-radius: 20px;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.card:active {
  transform: translateY(-2px) scale(0.98);
}

.cardIconWrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--card-bg-color, rgba(255, 255, 255, 0.9)) 0%, rgba(255, 255, 255, 0.6) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.card:hover .cardIconWrapper {
  background: linear-gradient(135deg, var(--card-color, #667eea) 0%, var(--card-bg-color, rgba(255, 255, 255, 0.9)) 100%);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.cardIcon {
  font-size: 28px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  color: var(--card-color, #667eea);
}

.card:hover .cardIcon {
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  color: #fff;
}

.cardContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cardTitle {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 4px;
  transition: all 0.4s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card:hover .cardTitle {
  color: var(--card-color, #667eea);
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cardSubtitle {
  font-size: 10px;
  color: #666;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0.8;
}

.card:hover .cardSubtitle {
  color: #555;
  opacity: 1;
  transform: translateY(-1px);
}

/* 动态和通知区域 */
.postsSection {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 20px 80px 20px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.postsSection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
  pointer-events: none;
  border-radius: 24px;
}

/* Tabs内容区域 */
.postsContainer,
.noticesContainer {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

/* 为动态和通知容器添加自定义滚动条 */
.postsContainer::-webkit-scrollbar,
.noticesContainer::-webkit-scrollbar {
  width: 6px;
}

.postsContainer::-webkit-scrollbar-track,
.noticesContainer::-webkit-scrollbar-track {
  background: transparent;
}

.postsContainer::-webkit-scrollbar-thumb,
.noticesContainer::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.postsContainer::-webkit-scrollbar-thumb:hover,
.noticesContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 保持原有样式，在动态相关样式中添加以下内容 */

/* 动态样式 */
.postItem {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.postItem:hover {
  background-color: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.postHeader {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.avatarContainer {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.avatarContainer:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatarContainer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.avatarContainer:hover::after {
  opacity: 1;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postInfo {
  flex: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 2px 0;
  border-radius: 4px;
}

.postInfo:hover {
  background-color: rgba(24, 144, 255, 0.05);
  transform: translateX(2px);
}

.authorName {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: color 0.2s ease;
}

.postInfo:hover .authorName {
  color: #1890ff;
}

.postTime {
  font-size: 12px;
  color: #999;
}

.moreActions {
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.moreActions:hover {
  background-color: #f0f0f0;
  color: #666;
}

.postContent {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.6;
}

.postImages {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
  gap: 8px;
}

.postImageContainer {
  width: calc(50% - 4px);
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.postImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.postImage:hover {
  transform: scale(1.05);
}

.postActions {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.actionButton {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.actionButton:hover {
  background-color: #f0f0f0;
  color: #ff6b35;
  transform: scale(1.05);
}

.actionButton:active {
  transform: scale(0.95);
}

.actionIcon {
  margin-right: 4px;
  font-size: 16px;
}

/* 通知样式 */
.noticeItem {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.noticeItem:hover {
  background-color: #f8f9fa;
  transform: translateX(4px);
}

.noticeHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.noticeTitle {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  flex: 1;
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.importantTag {
  background-color: #ff4d4f;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-right: 8px;
  font-weight: normal;
}

.noticeType {
  background-color: #e6f7ff;
  color: #1890ff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.noticeContent {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.noticeFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.noticeTime {
  display: flex;
  align-items: center;
}

.noticeViews {
  display: flex;
  align-items: center;
}

/* 校园卡状态指示器 */
.cardStatus {
  font-size: 12px;
  font-weight: 600;
  color: #667eea;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 15px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.cardStatus:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 空状态 */
.emptyNotices {
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* 适配底部导航栏 */
:global(.adm-tabs-content) {
  height: auto !important;
  overflow: visible !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

:global(.adm-tabs-tab-list) {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

:global(.adm-tabs-tab-active) {
  color: #667eea !important;
  font-weight: 600 !important;
}

:global(.adm-tabs-tab-line) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  height: 3px !important;
  border-radius: 2px !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .schoolHeader {
    padding: 10px 12px;
  }

  .bannerContainer {
    padding: 10px 12px;
  }

  .banner {
    height: 120px;
    padding: 12px;
  }

  .cardGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    margin: 0 12px 16px 12px;
  }

  .card {
    padding: 12px 6px;
  }

  .cardIconWrapper {
    width: 40px;
    height: 40px;
  }

  .cardIcon {
    font-size: 20px;
  }

  .cardTitle {
    font-size: 11px;
  }

  .cardSubtitle {
    font-size: 9px;
  }

  .postImages {
    gap: 6px;
  }

  .postImageContainer {
    width: calc(50% - 3px);
    height: 100px;
  }

  .postsSection {
    margin: 0 8px 100px 8px;
  }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
  .cardGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .card {
    padding: 10px 4px;
  }

  .cardIconWrapper {
    width: 36px;
    height: 36px;
  }

  .cardIcon {
    font-size: 18px;
  }

  .cardTitle {
    font-size: 10px;
  }

  .cardSubtitle {
    font-size: 8px;
  }
}

/* 确保内容不会被底部导航栏遮挡 */
.homeContainer::after {
  content: '';
  height: 80px;
  flex-shrink: 0;
}

/* 添加一些全局动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.bannerContainer {
  animation: fadeInUp 0.6s ease-out;
}

.cardGrid {
  animation: fadeInUp 0.8s ease-out;
}

.postsSection {
  animation: fadeInUp 1s ease-out;
}

/* 为轮播图添加脉冲效果 */
.banner::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banner:hover::after {
  opacity: 0.3;
  animation: pulse 2s infinite;
}